package com.lswms.modules.lswms.service.impl.stock;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lswms.common.service.impl.CrudServiceImpl;
import com.lswms.modules.lswms.dao.stock.TrayDao;
import com.lswms.modules.lswms.dto.stock.TrayDTO;
import com.lswms.modules.lswms.entity.stock.TrayEntity;
import com.lswms.modules.lswms.service.stock.TrayService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 周转箱
 *
 * @author DX sunlightcs@gmail.com
 * @since 1.0.0 2021-12-09
 */
@Service
public class TrayServiceImpl extends CrudServiceImpl<TrayDao, TrayEntity, TrayDTO> implements TrayService {

    @Override
    public QueryWrapper<TrayEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<TrayEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}